package com.xxr.mom.ci.charging.message;

import com.xxr.mom.ci.charging.interworking.data.SynchronizeDeviceData;
import com.xxr.mom.ci.charging.interworking.dto.InterworkingConfigDto;

/**
 * @description: AbstractMessage
 * @date: 2024/8/22 22:00
 * @author: natsuki_kining
 * @version: 1.0
 */
public interface MessageChannel {

    /**
     * 一分钟
     */
    long TIMEOUT = 60 * 1000;

    /**
     * 发送拉取到的设备信息
     *
     * @param synchronizeDeviceData
     * @return
     */
    boolean sendDeviceInfoMessage(SynchronizeDeviceData synchronizeDeviceData);

    void rePush(Object data, InterworkingConfigDto configDto, int delay);
}
